package framework.bo;

import com.alibaba.fastjson.annotation.JSONField;
import framework.util.queryFilter.annotation.JavabeanField;

import java.util.List;

public class SysMenu {

    @JavabeanField
    private Integer lid;
    @JavabeanField
    private String cname;
    @JavabeanField
    private String url;
    @JavabeanField
    private String remark;
    @JavabeanField
    private String icon;
    @JavabeanField
    private Integer plid;
    @JavabeanField
    private Integer sort;
    @JavabeanField
    private Integer haschild;
    @JavabeanField
    private Integer deep;
    @JavabeanField
    private Integer isDelete;
    @JavabeanField
    private Integer isUse;
    @JavabeanField
    private Integer operatorId;
    @JavabeanField
    private String operatorName;
    @JavabeanField
    private String operatorTime;

    /** 子菜单列表 **/
    @JSONField(deserialize = false)
    private List<SysMenu> childList;
    /** 是否勾选 **/
    @JSONField(deserialize = false)
    private Boolean checked;

    public static final String LID = "lid";
    public static final String CNAME = "cname";
    public static final String URL = "url";
    public static final String REMARK = "remark";
    public static final String ICON = "icon";
    public static final String PLID = "plid";
    public static final String SORT = "sort";
    public static final String HASCHILD = "haschild";
    public static final String DEEP = "deep";
    public static final String IS_DELETE = "isDelete";
    public static final String IS_USE = "isUse";
    public static final String OPERATOR_ID = "operatorId";
    public static final String OPERATOR_NAME = "operatorName";
    public static final String OPERATOR_TIME = "operatorTime";

    public Integer getLid() {
        return lid;
    }

    public void setLid(Integer lid) {
        this.lid = lid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getPlid() {
        return plid;
    }

    public void setPlid(Integer plid) {
        this.plid = plid;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getHaschild() {
        return haschild;
    }

    public void setHaschild(Integer haschild) {
        this.haschild = haschild;
    }

    public Integer getDeep() {
        return deep;
    }

    public void setDeep(Integer deep) {
        this.deep = deep;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getIsUse() {
        return isUse;
    }

    public void setIsUse(Integer isUse) {
        this.isUse = isUse;
    }

    public Integer getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(Integer operatorId) {
        this.operatorId = operatorId;
    }

    public String getOperatorName() {
        return operatorName;
    }

    public void setOperatorName(String operatorName) {
        this.operatorName = operatorName;
    }

    public String getOperatorTime() {
        return operatorTime;
    }

    public void setOperatorTime(String operatorTime) {
        this.operatorTime = operatorTime;
    }

    public List<SysMenu> getChildList() {
        return childList;
    }

    public void setChildList(List<SysMenu> childList) {
        this.childList = childList;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    @Override
    public String toString() {
        return "SysMenu{" +
                "lid=" + lid +
                ", cname='" + cname + '\'' +
                ", url='" + url + '\'' +
                ", remark='" + remark + '\'' +
                ", icon='" + icon + '\'' +
                ", plid=" + plid +
                ", sort=" + sort +
                ", haschild=" + haschild +
                ", deep=" + deep +
                ", isDelete=" + isDelete +
                ", isUse=" + isUse +
                ", operatorId=" + operatorId +
                ", operatorName='" + operatorName + '\'' +
                ", operatorTime='" + operatorTime + '\'' +
                ", childList=" + childList +
                '}';
    }
}
